﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using SpaceAdventureLib.Universe;

namespace SpaceAdventureLib.Universe.Units
{
    [Serializable]
    public class Unit : Collidable
    {

        #region "Properties"

        private float thrust = 0.0f;
        public float ThrustForce
        {
            get { return this.thrust; }
            set { this.thrust = value; }
        }

        private float dragFactor = 0.0f;
        public float DragFactor
        {
            get { return this.dragFactor; }
            set { this.dragFactor = value; }
        }

        #endregion

        #region "Constructor"

        public Unit(Space space)
        {
            this.PreInitialize(space);
            this.Space.Units.Add(this);
        }
        
        #endregion

        #region "Methods"

        public override void FinaliseInitialization()
        {
            // do nothing
        }

        public override void Update(GameTime gameTime)
        {
            // TODO: do nothing
        }

        #endregion

    }
}
